import request from "@/utils/request"

// 新增检查表
export function postUserAdd(data) {
  return request({
    url: "/users/add",
    method: "post",
    data
  })
}

export function postUserUpdate(data) {
  return request({
    url: "/users/update",
    method: "put",
    data
  })
}

export function getUsersList(data) {
  return request({
    url: "/users/list",
    method: "post",
    data
  })
}

export function postUserDel(data) {
  return request({
    url: "/users/delete",
    method: "delete",
    data
  })
}

export function getDepartList(data) {
  return request({
    url: "/unit/list",
    method: "post",
    data
  })
}

export function updatePass(data) {
  return request({
    url: "/users/updatePass",
    method: "put",
    data
  })
}

